<!--
 * @Descripttion: 字体加粗下拉框选择
 * @version: 0.0.1
 * @Author: linchun
 * @Date: 2021-12-23 14:58:59
 * @LastEditors: zhangmeng
 * @LastEditTime: 2022-02-22 13:48:01
-->
<template>
    <el-select v-model="val" @change="change">
      <el-option
        v-for="item in options"
        :key="item.value"
        :label="item.label"
        :value="item.value"
      ></el-option>
    </el-select>
  </template>
  <script>
  export default {
    props: ["value","type"],
    data() {
      return {
        val: this.value,
        options: [
          {
            value: "lighter",
            label: "细",
          },
          {
            value: "normal",
            label: "正常",
          },
          {
            value: "Bold",
            label: "加粗",
          },
        ],
      };
    },
    methods: {
      change(data) {
        this.$emit("change",  {
        key: this.type,
        value: data,
      });
      },
    },
  };
  </script>
  